<?php # Yii::app()->clientScript->registerCssFile(Yii::app()->request->baseUrl.'/css/form_new.css');?> 
<?php # $this->renderPartial('../common/_top',array('status'=>''));	?>

<span class="login_top">Đăng nhập</span>

<div class="form">
<?php $form=$this->beginWidget('CActiveForm', array(
    'id'=>'login-form',
    'enableClientValidation'=>true,
    'clientOptions'=>array(
        'validateOnSubmit'=>true,
    ),
)); ?>

    <div class="row">
        <?php echo $form->labelEx($model,'Số điện thoại'); ?>
        <?php echo $form->textField($model,'username'); ?>
        <?php echo $form->error($model,'username'); ?>
    </div>

    <div class="row">
        <?php echo $form->labelEx($model,'Mật khẩu'); ?>
        <?php echo $form->passwordField($model,'password'); ?>
        <?php echo $form->error($model,'password'); ?>
        
    </div>

    <div class="row rememberMe">
        <?php echo $form->checkBox($model,'rememberMe'); ?>
        <?php echo $form->label($model,'Nhớ mật khẩu'); ?>
        <?php echo $form->error($model,'rememberMe'); ?>
        | <a href="<?php echo $this->createUrl("action/forgot")?>">Quên mật khẩu</a>
    </div>
    

    <div class="row buttons">
        <?php echo CHtml::submitButton('Đăng nhập'); ?>
    </div>

<?php $this->endWidget(); ?>
</div><!-- form -->
